# coding:utf-8
"""
Author: r.xw
Date: 2023/12/9
File: user.py
"""
from sqlalchemy import Table
from common.database import db_connect

db_session, base, engine = db_connect()


class User(base):
    __table__ = Table("user", base.metadata, autoload_with=engine)

    def get_one(self):
        return db_session.query(User).first()
